package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FishingNetRecoveryMapper;
import com.ruoyi.system.domain.FishingNetRecovery;
import com.ruoyi.system.service.IFishingNetRecoveryService;

/**
 * 渔网回收Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-19
 */
@Service
public class FishingNetRecoveryServiceImpl implements IFishingNetRecoveryService 
{
    @Autowired
    private FishingNetRecoveryMapper fishingNetRecoveryMapper;

    /**
     * 查询渔网回收
     * 
     * @param id 渔网回收主键
     * @return 渔网回收
     */
    @Override
    public FishingNetRecovery selectFishingNetRecoveryById(Long id)
    {
        return fishingNetRecoveryMapper.selectFishingNetRecoveryById(id);
    }

    /**
     * 查询渔网回收列表
     * 
     * @param fishingNetRecovery 渔网回收
     * @return 渔网回收
     */
    @Override
    public List<FishingNetRecovery> selectFishingNetRecoveryList(FishingNetRecovery fishingNetRecovery)
    {
        return fishingNetRecoveryMapper.selectFishingNetRecoveryList(fishingNetRecovery);
    }

    /**
     * 新增渔网回收
     * 
     * @param fishingNetRecovery 渔网回收
     * @return 结果
     */
    @Override
    public int insertFishingNetRecovery(FishingNetRecovery fishingNetRecovery)
    {
        return fishingNetRecoveryMapper.insertFishingNetRecovery(fishingNetRecovery);
    }

    /**
     * 修改渔网回收
     * 
     * @param fishingNetRecovery 渔网回收
     * @return 结果
     */
    @Override
    public int updateFishingNetRecovery(FishingNetRecovery fishingNetRecovery)
    {
        return fishingNetRecoveryMapper.updateFishingNetRecovery(fishingNetRecovery);
    }

    /**
     * 批量删除渔网回收
     * 
     * @param ids 需要删除的渔网回收主键
     * @return 结果
     */
    @Override
    public int deleteFishingNetRecoveryByIds(Long[] ids)
    {
        return fishingNetRecoveryMapper.deleteFishingNetRecoveryByIds(ids);
    }

    /**
     * 删除渔网回收信息
     * 
     * @param id 渔网回收主键
     * @return 结果
     */
    @Override
    public int deleteFishingNetRecoveryById(Long id)
    {
        return fishingNetRecoveryMapper.deleteFishingNetRecoveryById(id);
    }
}
